pow.webserver
Enum DbOrder

java.lang.Object
  extended by java.lang.Enum<DbOrder>
      extended by pow.webserver.DbOrder
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DbOrder>

public enum DbOrder
extends java.lang.Enum<DbOrder>

represents 4 kind of message stored in database CONNECT first connection of an ivy bus --> inform db DECONNECT ivy bus deconnected --> inform db ADD add message to db

Author:
genin

Enum Constant Summary
ADD_DATA
          just store the data in the log table
ADD_ORDER
          the message is an order coming from a web user
CONNECT
          store the message and create a record in the 'connexion' table
DECONNECT
          store the message and complete the end field in the 'connexion' table
 
Method Summary
static DbOrder valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DbOrder[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONNECT

public static final DbOrder CONNECT
store the message and create a record in the 'connexion' table


DECONNECT

public static final DbOrder DECONNECT
store the message and complete the end field in the 'connexion' table


ADD_DATA

public static final DbOrder ADD_DATA
just store the data in the log table


ADD_ORDER

public static final DbOrder ADD_ORDER
the message is an order coming from a web user

Method Detail

values

public static DbOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DbOrder c : DbOrder.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DbOrder valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null